package com.atguigu.service;

import org.springframework.stereotype.Service;

/**
 * @Author: shenhao
 * @CreatTime: 2024/10/15 18:20
 * @Version: 1.0
 * 用于junit单元测试案例讲解
 */
@Service
public class MemberService {
    public String add(Integer uid){
        System.out.println("---come in addUser, your uid is "+uid);
        if (uid==-1){
            throw new IllegalArgumentException("parameter is negative");
        }
        return "ok";
    }

    public int del(Integer uid){
        System.out.println("---come in delUser, your uid is "+uid);
        return uid;
    }
}
